package jsu.xxy.coffee3.mapper;

import jsu.xxy.coffee3.domain.MiniOrderEntry;
import jsu.xxy.coffee3.domain.Ordertable;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 张从轩
* @description 针对表【ordertable】的数据库操作Mapper
* @createDate 2023-12-31 15:17:30
* @Entity jsu.xxy.coffee3.domain.Ordertable
*/
@Mapper
public interface OrdertableMapper extends BaseMapper<Ordertable> {
    public List<Ordertable> findAllOrderByName(String userName);
    public List<MiniOrderEntry> findAllMiniOrder(String userName);
    public List<Ordertable> findOneOrder(String userName, int orderId);
    public List<MiniOrderEntry> findTodayMiniOrder(String userName);
    public int addOneOrder(Ordertable orderEntry);
    public int findLastOrderId();
    public int findLastPickId();
}




